package com.cuotigou.mapper;

import com.cuotigou.pojo.SLabel;

import java.util.List;
import java.util.Map;

public interface SLabelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SLabel record);

    int insertSelective(SLabel record);

    SLabel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SLabel record);

    int updateByPrimaryKey(SLabel record);
    //题库复习标签
    List<SLabel> selectWrongTopicLabeLBySubjectId(Map<String,Object> map);
    //根据年级id查询科目标签
    List<SLabel> selectWrongTopicLabelGradeId(Integer id);
    //错题标签
    List<SLabel> selectWrongTopicLabeLByMap(Map<String,Object> map);
    //查询年级标签id
    Long selectId(Integer id);

    Integer select(String title);
}